package com.example.repair.base.netWork;

import android.os.Environment;

//import dhm.com.source.utils.EncryptUtil;


public interface Constant {

    /**
     * 正则表达式：验证手机号
     */
    public static final String REGEX_MOBILE = "/^[1][3,4,5,6,7,8,9][0-9]{9}$/";

    /**
     * 正则表达式：验证邮箱
     */
    public static final String REGEX_EMAIL = "^([a-z0-9A-Z]+[-|\\.]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-zA-Z]{2,}$";

    /**
     * 至少包含数字跟字母，可以有字符
     */
//    String reg = "/^\\w{6,16}$/";
    String reg = "(?=.*([a-zA-Z].*))(?=.*[0-9].*)[a-zA-Z0-9-*/+.~!@#$%^&*()]{6,20}$";

    String nick = "[a-zA-Z0-9]{6,16}$";

    /**
     * 正则表达式：只能是中文
     */
    public static final String CHINESE = "[\\u4e00-\\u9fa5]+";

    /**
     * 正则表达式：名字
     */
    String name = "^[\\u4e00-\\u9fa5][\\u4e00-\\u9fa5]+([•·]?+[\\u4e00-\\u9fa5]+)*$";


    /**
     * 正则表达式：身份证号码
     */
    String num = "/(^\\d{15}$)|(^\\d{18}$)|(^\\d{17}(\\d|X|x)$)/";


    /**
     * 正则表达式：统一社会信用代码
     */
    String company = "[1-9A-GY]{1}[1239]{1}[1-5]{1}[0-9]{5}[0-9A-Z]{10}";

    /**
     * 正则表达式：公司名称
     */
    String companyname = "^[\\u4e00-\\u9fa5][\\u4e00-\\u9fa5]+";
    String kouling = "/[u0000-\\uffff]/g";

//
//    String TOKEN = EncryptUtil.MD5("qitong");

    //微信appid
    public static final String Wx_APP_ID = "wx309af05814230385";
    public static final String urlappid = "wxaa7bdb191e76dd7c";

    public static final int IMAGE_REQUEST_CODE = 12;
    //拍照用到
    public static final String Tag = "dhm.com.dhmshop.fileProvider";


    //头像地址
    public static final String HeadPath = Environment.getExternalStorageDirectory().getAbsolutePath() +
            "/source/Image/HeadPath/";

    String PATH = "http://yxjd.dzrcx.net";
//    String PATH = "http://hrk.donghemei.com/";
    String TOKEN = "8e931a07d7d29b192ec518187ebf490f";


    //图形验证码地址
    String verify_test= "http://yxjd.dzrcx.net/appapi/treat/verify_test.html";

    //获取验证码
    String send_message= "/appapi/users/send_message";

    //用户注册接口
    String register= "/appapi/users/register";

    //用户登录
    String login= "/appapi/users/login";

    //修改密码
    String modify_pass= "/appapi/users/modify_pass";

    //忘记密码（验证会员真实性）
    String check_user= "/appapi/users/check_user";

    //设置个人信息
    String update_info= "/appapi/users/update_info";

    //更新用户定位信息
    String user_location= "/appapi/users/user_location";

    //忘记密码后重置密码
    String set_new_pass= "/appapi/users/set_new_pass";

    //获取个人信息
    String get_userinfo= "/appapi/users/get_userinfo";

    //获取订单列表
    String orderlist= "/appapi/order/orderlist";

    //更新订单状态为正在维修
    String order_under_repair= "appapi/order/order_under_repair";

    //获取订单详情
    String order_info= "/appapi/order/order_info";

    //修改订单状态
    String modify_order_status= "/appapi/order/modify_order_status";
}